package com.ksyun.camp.modle.vo;

import lombok.Getter;

@Getter
public enum AuthResponse {
    SUCCESS(200, "操作成功"),
    SYSTEM_ERROR(500, "系统错误"),
    REPEAT_TASK(501, "重复的批处理任务"),
    LOCK_ACQUISITION_FAILED(513, "redis异常，获取分布式锁失败"),
    INSUFFICIENT_BALANCE(518, "账户余额不足"),
    REQUESTID_REPEAT(203, "请求ID重复")
    ;

    private Integer code ;      // 业务状态码
    private String message ;    // 响应消息

    AuthResponse(Integer code, String message) {
        this.code = code ;
        this.message = message ;
    }
}
